﻿<Window x:Uid="MVEMainWindow" x:Class="MVExplorer.MVEMain"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Meet Video Explorer" Height="720" Width="1024" WindowStyle="None"
  xmlns:my="clr-namespace:System;assembly=mscorlib"
  xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
  xmlns:dat="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
  xmlns:mtool="clr-namespace:MeetCommon.Tools;assembly=MeetCommon"
  xmlns:local="clr-namespace:MVExplorer"
  mc:Ignorable="d"
    Name="MVEMainWindow" Background="#00C8C8C8" WindowStartupLocation="CenterScreen">

  <Window.Resources>
    
    <XmlDataProvider x:Uid="XmlDataProvider_1" x:Key="SegmentMovies"  IsInitialLoadEnabled="False" XPath="//clip/segment" />
    <XmlDataProvider x:Uid="XmlDataProvider_2" x:Key="SegmentHistory"  IsInitialLoadEnabled="False" XPath="//clip/segment" />
    <XmlDataProvider x:Uid="XmlDataProvider_3" x:Key="SegmentBookmark"  IsInitialLoadEnabled="False" XPath="//clip/segment" />
    <XmlDataProvider x:Uid="XmlDataProvider_4" x:Key="ClipSegments"  IsInitialLoadEnabled="False" XPath="//clip/segment" />
    <XmlDataProvider x:Uid="XmlDataProvider_5" x:Key="RelatedSegments"  IsInitialLoadEnabled="False" XPath="//clip/segment" />
    <XmlDataProvider x:Uid="XmlDataProvider_6" x:Key="UserKeywords"  IsInitialLoadEnabled="False" XPath="//keywords/keyword" />
    <Style x:Uid="Style_1" x:Key="NonFocusVisual">
      <Setter x:Uid="Setter_1" Property="Control.Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_1" TargetType="{x:Type Control}">
            <Canvas x:Uid="Canvas_1">
              <Grid x:Uid="Grid_1">
              </Grid>
            </Canvas>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_2" x:Key="GlowLabel" TargetType="{x:Type Label}">
      <Setter x:Uid="Setter_2" Property="Label.BitmapEffect">
        <Setter.Value>
          <OuterGlowBitmapEffect x:Uid="OuterGlowBitmapEffect_1" GlowColor="DarkGray" GlowSize="4" />
        </Setter.Value>
      </Setter>
    </Style>
    <Style x:Uid="Style_3" x:Key="RoundTabControl" TargetType="{x:Type TabControl}">
      <Setter x:Uid="Setter_3" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_2" TargetType="{x:Type TabControl}">
            <Grid x:Uid="Grid" ClipToBounds="True" x:Name="Grid" SnapsToDevicePixels="True" KeyboardNavigation.TabNavigation="Local">
              <Grid.ColumnDefinitions>
                <ColumnDefinition x:Uid="ColumnDefinition0" x:Name="ColumnDefinition0"/>
                <ColumnDefinition x:Uid="ColumnDefinition1" x:Name="ColumnDefinition1" Width="0"/>
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition x:Uid="RowDefinition0" x:Name="RowDefinition0" Height="Auto"/>
                <RowDefinition x:Uid="RowDefinition1" x:Name="RowDefinition1" Height="*"/>
              </Grid.RowDefinitions>
              <TabPanel x:Uid="HeaderPanel" Margin="2,2,2,0" Grid.Row="0" Grid.Column="0" x:Name="HeaderPanel" IsItemsHost="True" Panel.ZIndex="1" KeyboardNavigation.TabIndex="1"/>
              <Border x:Uid="ContentPanel" Grid.Row="1" Grid.Column="0" x:Name="ContentPanel" CornerRadius="5,5,5,5" BorderThickness="0,0,1,1" BorderBrush="{x:Null}" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.DirectionalNavigation="Contained">
                <Border x:Uid="Border" x:Name="Border" CornerRadius="0,0,0,0" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{x:Null}">
                  <Border x:Uid="Border1" Background="{TemplateBinding Background}" x:Name="Border1" CornerRadius="5,5,5,5">
                    <ContentPresenter x:Uid="PART_SelectedContentHost" Margin="{TemplateBinding Padding}" x:Name="PART_SelectedContentHost" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="SelectedContent"/>
                  </Border>
                </Border>
              </Border>
            </Grid>

          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    
    <Style x:Uid="Style_4" x:Key="GrowingSmartButton" TargetType="{x:Type Button}">
	  <Setter x:Uid="Setter_4" Property="FocusVisualStyle" Value="{StaticResource NonFocusVisual}" />
      <Setter x:Uid="Setter_5" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_3" TargetType="{x:Type Button}">
            <Grid x:Uid="buttonGrid" x:Name="buttonGrid">
              <ContentPresenter x:Uid="buttonContent" x:Name="buttonContent"
                                HorizontalAlignment=
                                   "{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment=
                                   "{TemplateBinding VerticalAlignment}">
                <ContentPresenter.BitmapEffect>
                  <OuterGlowBitmapEffect x:Uid="buttonGlow" x:Name="buttonGlow" GlowColor="Orange" GlowSize="3" Opacity="0" />
                </ContentPresenter.BitmapEffect>

              </ContentPresenter>
            </Grid>

            <ControlTemplate.Triggers>
              <EventTrigger x:Uid="EventTrigger_1" RoutedEvent="ButtonBase.Click">
                <EventTrigger.Actions>
                  <BeginStoryboard x:Uid="BeginStoryboard_1" >
                    <Storyboard x:Uid="clickTimeline" x:Name="clickTimeline">
                      
                      <ThicknessAnimation x:Uid="ThicknessAnimation_1" Storyboard.TargetName="buttonContent" Storyboard.TargetProperty="Margin"
												From="0,0,0,0"  To="2,2,0,0" AutoReverse="True" Duration="0:0:0.2"/>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>

              <EventTrigger x:Uid="EventTrigger_2" RoutedEvent="Mouse.MouseEnter">
                <EventTrigger.Actions>
                  <BeginStoryboard x:Uid="enterTimeline" x:Name="enterTimeline">
                    <Storyboard x:Uid="Storyboard_1">
                      
                      <DoubleAnimation x:Uid="DoubleAnimation_1" Storyboard.TargetName="buttonGlow" Storyboard.TargetProperty="Opacity"
												To="1"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>

              <EventTrigger x:Uid="EventTrigger_3" RoutedEvent="Mouse.MouseLeave">
                <EventTrigger.Actions>
                  <BeginStoryboard x:Uid="leaveTimeline" x:Name="leaveTimeline">
                    <Storyboard x:Uid="Storyboard_2">
                      
                      <DoubleAnimation x:Uid="DoubleAnimation_2" Storyboard.TargetName="buttonGlow" Storyboard.TargetProperty="Opacity"
												To="0"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </EventTrigger.Actions>
              </EventTrigger>
            </ControlTemplate.Triggers>

          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_5" TargetType="{x:Type RadioButton}" x:Key="GrowingRadioButton">
      <Setter x:Uid="Setter_6" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_4" TargetType="{x:Type RadioButton}">
            <ControlTemplate.Resources>
              <Storyboard x:Uid="Storyboard_3" x:Key="OnChecked1"/>
            </ControlTemplate.Resources>
            <ContentPresenter x:Uid="radioButtonContent" x:Name="radioButtonContent"
              HorizontalAlignment=
                   "{TemplateBinding HorizontalContentAlignment}"
                VerticalAlignment=
                   "{TemplateBinding VerticalAlignment}"
              RecognizesAccessKey="True">
              <ContentPresenter.BitmapEffect>
                <OuterGlowBitmapEffect x:Uid="radioButtonGlow" x:Name="radioButtonGlow" GlowColor="White" GlowSize="3" Opacity="0" />
              </ContentPresenter.BitmapEffect>
            </ContentPresenter>
            <ControlTemplate.Triggers>
              <Trigger x:Uid="Trigger_1" Property="IsChecked" Value="True">
                <Trigger.Setters>
                  <Setter x:Uid="Setter_7" Property="Opacity" Value="1.0" />
                </Trigger.Setters>
                <Trigger.EnterActions>
                  <BeginStoryboard x:Uid="selectListItemTimeline" x:Name="selectListItemTimeline">
                    <Storyboard x:Uid="Storyboard_4">
                      <DoubleAnimation x:Uid="DoubleAnimation_3" Storyboard.TargetName="radioButtonGlow" Storyboard.TargetProperty="Opacity" To="1"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard x:Uid="unselectListItemTimeline" x:Name="unselectListItemTimeline">
                    <Storyboard x:Uid="Storyboard_5">
                      <DoubleAnimation x:Uid="DoubleAnimation_4" Storyboard.TargetName="radioButtonGlow" Storyboard.TargetProperty="Opacity" To="0"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    
    
    <Style x:Uid="Style_6" x:Key="{x:Type ListBoxItem}" TargetType="{x:Type ListBoxItem}">
      <Setter x:Uid="Setter_8" Property="FocusVisualStyle" Value="{x:Null}" />
      <Setter x:Uid="Setter_9" Property="Opacity" Value="0.7" />
      <Setter x:Uid="Setter_10" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_5" TargetType="{x:Type ListBoxItem}">
            <Border
              x:Uid="ContentBorder" x:Name="ContentBorder"
              BorderThickness="1"
              BorderBrush="Transparent">
              <ContentPresenter x:Uid="ContentPresenter_1">
                <ContentPresenter.BitmapEffect>
                  <OuterGlowBitmapEffect x:Uid="listItemGlow" x:Name="listItemGlow" GlowColor="Orange" GlowSize="3" Opacity="0" />
                </ContentPresenter.BitmapEffect>
              </ContentPresenter>
            </Border>
            <ControlTemplate.Triggers> 
              <Trigger x:Uid="Trigger_2" Property="IsSelected" Value="True">
                <Trigger.Setters>
                  <Setter x:Uid="Setter_11" Property="Opacity" Value="1.0" />
                </Trigger.Setters>
                <Trigger.EnterActions>
                  <BeginStoryboard x:Uid="BeginStoryboard_2" x:Name="selectListItemTimeline">
                    <Storyboard x:Uid="Storyboard_6">
                      <DoubleAnimation x:Uid="DoubleAnimation_5" Storyboard.TargetName="listItemGlow" Storyboard.TargetProperty="Opacity" To="1"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                  <BeginStoryboard x:Uid="BeginStoryboard_3" x:Name="unselectListItemTimeline">
                    <Storyboard x:Uid="Storyboard_7">
                      <DoubleAnimation x:Uid="DoubleAnimation_6" Storyboard.TargetName="listItemGlow" Storyboard.TargetProperty="Opacity" To="0"  Duration="0:0:0.5"/>
                    </Storyboard>
                  </BeginStoryboard>
                </Trigger.ExitActions>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    
    
    <Style x:Uid="Style_7" x:Key="HorizontalListBoxTemplate" TargetType="{x:Type ListBox}" >
      <Setter x:Uid="Setter_12" Property="Template">
       <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_6" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">
              <StackPanel x:Uid="LBHStackPanel1" x:Name="LBHStackPanel1" IsItemsHost="True"  Orientation="Horizontal"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_8" x:Key="VerticalListBoxTemplate" TargetType="{x:Type ListBox}" >
      <Setter x:Uid="Setter_13" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_7" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_2" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">
              <StackPanel x:Uid="StackPanel_1" x:Name="LBHStackPanel1" IsItemsHost="True"  Orientation="Vertical"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_9" x:Key="VerticalWrapListBoxTemplate" TargetType="{x:Type ListBox}">
      <Setter x:Uid="Setter_14" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_8" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_3" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Hidden">
              <WrapPanel x:Uid="LBVWrapPanel" x:Name="LBVWrapPanel" IsItemsHost="True"
                 Orientation="Vertical" Width="Auto"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_10" x:Key="NonScrollBarListBoxTemplate" TargetType="{x:Type ListBox}">
      <Setter x:Uid="Setter_15" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_9" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_4" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
              <StackPanel x:Uid="LBNSStackPanel1" x:Name="LBNSStackPanel1" IsItemsHost="True" Orientation="Vertical"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_11" x:Key="ScrollBarListBoxTemplate" TargetType="{x:Type ListBox}">
      <Setter x:Uid="Setter_16" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_10" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_5" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto">
              <StackPanel x:Uid="StackPanel_2" x:Name="LBNSStackPanel1" IsItemsHost="True" Orientation="Vertical"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_12" x:Key="RelatedTabControl" TargetType="{x:Type TabControl}">
      <Setter x:Uid="Setter_17" Property = "TabStripPlacement" Value = "Left"/>
      </Style>

    
    <Style x:Uid="Style_13" x:Key="RelatedListBoxTemplate" TargetType="{x:Type ListBox}">
      <Setter x:Uid="Setter_18" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_11" TargetType="{x:Type ListBox}">
            <ScrollViewer x:Uid="ScrollViewer_6" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto" >
              <StackPanel x:Uid="LBNSStackPanel2" x:Name="LBNSStackPanel2" IsItemsHost="True" Orientation="Vertical"/>
            </ScrollViewer>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    
    
    <DataTemplate x:Uid="DataTemplate_1" x:Key="MovieKeywordsTemplate" DataType="keyword">
      <TextBlock x:Uid="TextBlock_1" MouseLeftButtonUp="MovieKeyword_MouseLeftButtonUp" VerticalAlignment="Bottom">
        <Hyperlink x:Uid="Hyperlink_1" Click="keyword_Click" Tag="{Binding XPath=keyword}">
          <TextBlock x:Uid="TextBlock_2" Text="{Binding XPath=keyword}" MouseLeftButtonUp="MovieKeyword_MouseLeftButtonUp" VerticalAlignment="Bottom"/>
        </Hyperlink>
      </TextBlock>
    </DataTemplate>
    <mtool:DateTimeFormattingBindConverter x:Uid="mtool:DateTimeFormattingBindConverter_1" x:Key="DateTimeFormattingConverter"/>

    <DataTemplate x:Uid="DataTemplate_2" DataType="segment">
      
        <Grid x:Uid="gridMovieItem" VerticalAlignment="Top" Margin="5,3,5,2" Width="540" Height="85" MinWidth="300" x:Name="gridMovieItem" MouseLeftButtonDown="gridMovieItem_MouseLeftButtonDown" MouseLeftButtonUp="gridMovieItem_MouseLeftButtonUp" MouseMove="gridMovieItem_MouseMove" Drop="gridMovieItem_Drop" >
        <Grid.ColumnDefinitions>
          <ColumnDefinition x:Uid="ColumnDefinition_1" Width="120px"/>
          <ColumnDefinition x:Uid="ColumnDefinition_2" Width="0.633002481389578*"/>
          <ColumnDefinition x:Uid="ColumnDefinition_3" Width="30px"/>
        </Grid.ColumnDefinitions>
        <Border x:Uid="SegmentBorder" Name="SegmentBorder" Grid.ColumnSpan="3" CornerRadius="5" Grid.Column="0" Grid.Row="0" Margin="0,0,0,0"   >

          <Border.Background>
            <LinearGradientBrush x:Uid="LinearGradientBrush_1" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_1">
                  <TranslateTransform x:Uid="TranslateTransform_1" X="-0.5" Y="-0.5"/>
                  <ScaleTransform x:Uid="ScaleTransform_1" ScaleX="1.4289956532775823" ScaleY="1.4289956532775823"/>
                  <SkewTransform x:Uid="SkewTransform_1" AngleX="0" AngleY="0"/>
                  <RotateTransform x:Uid="RotateTransform_1" Angle="-131.85024611568173"/>
                  <TranslateTransform x:Uid="TranslateTransform_2" X="0.5" Y="0.5"/>
                  <TranslateTransform x:Uid="TranslateTransform_3" X="-0.016370836361375526" Y="-0.0301457724874255"/>
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>
              <GradientStop x:Uid="GradientStop_1" Color="sc#1, 0.916219831, 0.92414254, 1" Offset="1"/>
            </LinearGradientBrush>
          </Border.Background>
        </Border>
        
        <Image x:Uid="imageThumbnail" Margin="5" x:Name="imageThumbnail" Width="100" Height="75" Source="{Binding XPath=thumb_url}" MouseLeftButtonUp="imageThumbnail_MouseLeftButtonUp" >
        </Image>
        
        <ScrollViewer x:Uid="scrviewDetails" ScrollChanged="scrviewDetails_ScrollChanged" Grid.Column="1" VerticalScrollBarVisibility="Hidden" x:Name="scrviewDetails" Margin="0,0,0,0" Grid.ColumnSpan="1" HorizontalAlignment="Stretch" Width="Auto" Focusable="False">

          <StackPanel x:Uid="spanelSegmentDetail" Margin="0,0,3,4" ScrollViewer.VerticalScrollBarVisibility="Auto" MinWidth="50" MinHeight="50" x:Name="spanelSegmentDetail"   CanVerticallyScroll="True">
            <StackPanel x:Uid="StackPanel_3" Margin="10,0,0,0" Orientation="Horizontal">
              <TextBlock x:Uid="textVideoTitle" x:Name="textVideoTitle" VerticalAlignment="Top" Padding="4" Margin="0,0,10,0" Width="250" Height="20" Grid.Column="1" Foreground="#FFFF7300" Text="{Binding XPath=title}" />
              
              <Button x:Uid="cmdAddBookmark" Style="{StaticResource GrowingSmartButton}" VerticalAlignment="Top" Margin="5,8,6,0" Height="Auto" Background="#00646464" x:Name="cmdAddBookmark" BorderBrush="{x:Null}" Click="cmdAddBookmark_Click">
                    <StackPanel x:Uid="StackPanel_4">
                      <Image x:Uid="Image_1" Source="Resources/BookmarkButton.png"  Width="75" Height="15" />
                      <Popup x:Uid="PopupAddBookmarkInfo" Name="PopupAddBookmarkInfo" IsOpen="False" PopupAnimation="Fade" Placement="Top" AllowsTransparency="True">
                        <TextBlock x:Uid="TextBlock_3">Bookmark Added.</TextBlock>
                      </Popup>
                    </StackPanel>
                  </Button>
            </StackPanel>

            <StackPanel x:Uid="StackPanel_5" Orientation="Horizontal" Margin="2,2,0,0">
              <TextBlock x:Uid="TextBlock_4" Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="「" />
              <TextBlock x:Uid="textClipTitle" x:Name="textClipTitle"  Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="{Binding XPath=../title}" />
              <TextBlock x:Uid="TextBlock_5" Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="」" />
            </StackPanel>
            <TextBlock x:Uid="textVideoDescription" x:Name="textVideoDescription"  Margin="3,1,3,1" Width="Auto" Height="Auto" Grid.Column="1" MinHeight="22" TextWrapping="Wrap" Text="{Binding XPath=description}" />
            <StackPanel x:Uid="spanelDetailFooter" VerticalAlignment="Top" Margin="0"  Orientation="Horizontal" Grid.Column="1" Width="450" Height="Auto" x:Name="spanelDetailFooter">
              <Label x:Uid="labelKeywords" x:Name="labelKeywords" HorizontalAlignment="Left" VerticalAlignment="Top"  MinHeight="21" Grid.Column="1" Content="Keyword:" Foreground="#FFFF7300" FontSize="11" />
              <ListBox x:Uid="listKeywords" x:Name="listKeywords" Style="{StaticResource VerticalListBoxTemplate}" Width="400" Height="Auto" ItemsSource="{Binding XPath=keywords/keyword}" ItemTemplate="{StaticResource MovieKeywordsTemplate}" FontSize="11" />
            </StackPanel>
          </StackPanel>
        </ScrollViewer>
        <Button x:Uid="cmdDetailScrollUp" x:Name="cmdDetailScrollUp" Style="{StaticResource GrowingSmartButton}" Click="cmdDetailScrollUp_Click" FocusVisualStyle="{StaticResource NonFocusVisual}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,3,3,0" Width="22" Height="20" Grid.Column="2" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" >
          <Image x:Uid="Image_2" Source="Resources/ScrollUpArrow.png" />
        </Button>
        <Button x:Uid="cmdDetailScrollDown" x:Name="cmdDetailScrollDown" Style="{StaticResource GrowingSmartButton}" Click="cmdDetailScrollDown_Click" FocusVisualStyle="{StaticResource NonFocusVisual}"  HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,3,3" Width="22" Height="20" Grid.Column="2" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" >
          <Image x:Uid="Image_3" Source="Resources/ScrollDownArrow.png" />
        </Button>
      </Grid>
    </DataTemplate>

    <DataTemplate  x:Uid="DataTemplate_3" x:Key="BookmarkSegmentTemplate" DataType="segment">
      
      <Grid x:Uid="Grid_2" VerticalAlignment="Top" Margin="5,3,5,2" Width="540" Height="85" MinWidth="300" x:Name="gridMovieItem" MouseLeftButtonDown="gridMovieItem_MouseLeftButtonDown" MouseLeftButtonUp="gridMovieItem_MouseLeftButtonUp" MouseMove="gridMovieItem_MouseMove" Drop="gridMovieItem_Drop" >
        <Grid.ColumnDefinitions>
          <ColumnDefinition x:Uid="ColumnDefinition_4" Width="120px"/>
          <ColumnDefinition x:Uid="ColumnDefinition_5" Width="0.633002481389578*"/>
          <ColumnDefinition x:Uid="ColumnDefinition_6" Width="30px"/>
        </Grid.ColumnDefinitions>
        <Border x:Uid="Border_1" Name="SegmentBorder" Grid.ColumnSpan="3" CornerRadius="5" Grid.Column="0" Grid.Row="0" Margin="0,0,0,0">

          <Border.Background>
            <LinearGradientBrush x:Uid="LinearGradientBrush_2" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_2">
                  <TranslateTransform x:Uid="TranslateTransform_4" X="-0.5" Y="-0.5"/>
                  <ScaleTransform x:Uid="ScaleTransform_2" ScaleX="1.4289956532775823" ScaleY="1.4289956532775823"/>
                  <SkewTransform x:Uid="SkewTransform_2" AngleX="0" AngleY="0"/>
                  <RotateTransform x:Uid="RotateTransform_2" Angle="-131.85024611568173"/>
                  <TranslateTransform x:Uid="TranslateTransform_5" X="0.5" Y="0.5"/>
                  <TranslateTransform x:Uid="TranslateTransform_6" X="-0.016370836361375526" Y="-0.0301457724874255"/>
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>
              <GradientStop x:Uid="GradientStop_2" Color="sc#1, 0.916219831, 0.92414254, 1" Offset="1"/>
            </LinearGradientBrush>
          </Border.Background>
        </Border>
        
        <Image x:Uid="Image_4" Margin="5" x:Name="imageThumbnail" Width="100" Height="75" Source="{Binding XPath=thumb_url}" MouseLeftButtonUp="imageThumbnail_MouseLeftButtonUp" >
        </Image>
        
        <ScrollViewer x:Uid="ScrollViewer_7" ScrollChanged="scrviewDetails_ScrollChanged" Grid.Column="1" VerticalScrollBarVisibility="Hidden" x:Name="scrviewDetails" Margin="0,0,0,0" Grid.ColumnSpan="1" HorizontalAlignment="Stretch" Width="Auto" Focusable="False">

          <StackPanel x:Uid="StackPanel_6" Margin="0,0,3,4" ScrollViewer.VerticalScrollBarVisibility="Auto" MinWidth="50" MinHeight="50" x:Name="spanelSegmentDetail"   CanVerticallyScroll="True">
            <StackPanel x:Uid="StackPanel_7" Margin="10,0,0,0" Orientation="Horizontal">
              <TextBlock x:Uid="TextBlock_6" x:Name="textVideoTitle" VerticalAlignment="Top" Padding="4" Margin="0,0,10,0" Width="250" Height="20" Grid.Column="1" Foreground="#FFFF7300" Text="{Binding XPath=title}" />

            </StackPanel>

            <StackPanel x:Uid="StackPanel_8" Orientation="Horizontal" Margin="2,2,0,0">
              <TextBlock x:Uid="TextBlock_7" Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="「" />
              <TextBlock x:Uid="TextBlock_8" x:Name="textClipTitle"  Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="{Binding XPath=../title}" />
              <TextBlock x:Uid="TextBlock_9" Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="」" />
 
            </StackPanel>
            <TextBlock x:Uid="TextBlock_10" x:Name="textVideoDescription"  Margin="3,1,3,1" Width="Auto" Height="Auto" Grid.Column="1" MinHeight="22" TextWrapping="Wrap" Text="{Binding XPath=description}" />
            <StackPanel x:Uid="StackPanel_9" VerticalAlignment="Top" Margin="0"  Orientation="Horizontal" Grid.Column="1" Width="450" Height="Auto" x:Name="spanelDetailFooter">
              <Label x:Uid="Label_1" x:Name="labelKeywords" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="21" Grid.Column="1" Content="Keyword:" Foreground="#FFFF7300" FontSize="11" />
              <ListBox x:Uid="ListBox_1" x:Name="listKeywords" Style="{StaticResource VerticalListBoxTemplate}" VerticalAlignment="Bottom" Width="Auto" Height="Auto" MinWidth="10" MaxWidth="340" ItemsSource="{Binding XPath=keywords/keyword}" ItemTemplate="{StaticResource MovieKeywordsTemplate}" FontSize="11" />
            </StackPanel>
          </StackPanel>
        </ScrollViewer>
        <Button x:Uid="Button_1" x:Name="cmdDetailScrollUp" Style="{StaticResource GrowingSmartButton}" Click="cmdDetailScrollUp_Click" FocusVisualStyle="{StaticResource NonFocusVisual}" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,3,3,0" Width="22" Height="20" Grid.Column="2" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" >
          <Image x:Uid="Image_5" Source="Resources/ScrollUpArrow.png" />
        </Button>
        <Button x:Uid="Button_2" x:Name="cmdDetailScrollDown" Style="{StaticResource GrowingSmartButton}" Click="cmdDetailScrollDown_Click" FocusVisualStyle="{StaticResource NonFocusVisual}"  HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,3,3" Width="22" Height="20" Grid.Column="2" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" >
          <Image x:Uid="Image_6" Source="Resources/ScrollDownArrow.png" />
        </Button>
      </Grid>
    </DataTemplate>
    
    
    <DataTemplate x:Uid="DataTemplate_4" x:Key="RelatedSegmentTemplate" DataType="segment">
      <Grid x:Uid="gridRelatedMovieItem" VerticalAlignment="Top" Margin="5,3,5,2" Width="500" Height="30" MinWidth="500" x:Name="gridRelatedMovieItem" MouseLeftButtonDown="gridRelatedMovieItem_MouseLeftButtonDown" MouseLeftButtonUp="gridRelatedMovieItem_MouseLeftButtonUp" MouseMove="gridRelatedMovieItem_MouseMove" Drop="gridRelatedMovieItem_Drop" >
          <Border x:Uid="SegmentBorder1" Name="SegmentBorder1" Grid.ColumnSpan="3" CornerRadius="5" Grid.Column="0" Grid.Row="0" Margin="0,0,0,0">
          <Border.Background>
            <LinearGradientBrush x:Uid="LinearGradientBrush_3" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_3">
                  <TranslateTransform x:Uid="TranslateTransform_7" X="-0.5" Y="-0.5"/>
                  <ScaleTransform x:Uid="ScaleTransform_3" ScaleX="1.4289956532775823" ScaleY="1.4289956532775823"/>
                  <SkewTransform x:Uid="SkewTransform_3" AngleX="0" AngleY="0"/>
                  <RotateTransform x:Uid="RotateTransform_3" Angle="-131.85024611568173"/>
                  <TranslateTransform x:Uid="TranslateTransform_8" X="0.5" Y="0.5"/>
                  <TranslateTransform x:Uid="TranslateTransform_9" X="-0.016370836361375526" Y="-0.0301457724874255"/>
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>

              <GradientStop x:Uid="GradientStop_3" Color="sc#1, 0.916219831, 0.92414254, 1" Offset="1"/>
            </LinearGradientBrush>
          </Border.Background>
        </Border>
        
        <StackPanel x:Uid="StackPanel_10" Orientation="Horizontal" Height="20" >
          <TextBlock x:Uid="TextBlock_11" x:Name="textClipTitle"  Width="180"  Margin="3,4,3,4" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="{Binding XPath=../title}" />
          <TextBlock x:Uid="textSegmentTitle" x:Name="textSegmentTitle"  Width="180" Margin="3,4,3,4" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="{Binding XPath=title}" />
          
          <TextBlock x:Uid="textVideoOnairDate" x:Name="textVideoOnairDate"  Margin="3,4,3,4" Width="Auto" Height="Auto" Grid.Column="1" TextWrapping="Wrap" FontSize="11" Text="{Binding XPath=../onair_date, Converter={StaticResource DateTimeFormattingConverter}, ConverterParameter='yyyy/MM/dd'}" />
        </StackPanel>
</Grid>
    </DataTemplate>

    <DataTemplate x:Uid="DataTemplate_5" DataType="relatedSegments" >
      <ListBox x:Uid="listSegments" x:Name="listSegments" Style="{StaticResource RelatedListBoxTemplate}" VerticalAlignment="Bottom" Width="Auto"  MinWidth="540" MaxWidth="540" ItemsSource="{Binding XPath=segments/segment}" ItemTemplate="{StaticResource RelatedSegmentTemplate}" FontSize="11"  />
    </DataTemplate>

    
		<ControlTemplate x:Uid="ControlTemplate_12" x:Key="SmartSlider" TargetType="{x:Type Slider}">
			<Border x:Uid="Border_2" Background="{TemplateBinding Background}" x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
				<Grid x:Uid="Grid_3" x:Name="Grid">
					<Grid.RowDefinitions>
						<RowDefinition x:Uid="RowDefinition_1" Height="Auto"/>
						<RowDefinition x:Uid="RowDefinition_2" Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
						<RowDefinition x:Uid="RowDefinition_3" Height="Auto"/>
					</Grid.RowDefinitions>
					<TickBar x:Uid="TopTick" Visibility="Collapsed" Height="4" Grid.Row="0" x:Name="TopTick" Fill="{TemplateBinding Foreground}" Placement="Top"/>
					<TickBar x:Uid="BottomTick" Visibility="Collapsed" Height="4" Grid.Row="2" x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Placement="Bottom"/>
					<Border x:Uid="Border_3" VerticalAlignment="Center" Margin="5,0,5,0" Height="4" Grid.Row="1" Background="#FFF0EDE0" x:Name="Border1" CornerRadius="1,1,1,1" BorderThickness="1,1,1,1">
						<Border.BorderBrush>
							<LinearGradientBrush x:Uid="LinearGradientBrush_4" StartPoint="0,0" EndPoint="0,1">
								<GradientStop x:Uid="GradientStop_4" Color="#FFAEB1AF" Offset="0.1"/>
								<GradientStop x:Uid="GradientStop_5" Color="#FFFFFFFF" Offset="0.9"/>
							</LinearGradientBrush>
						</Border.BorderBrush>
						<Canvas x:Uid="Canvas" Margin="-6,-1,-6,-1" x:Name="Canvas">

            </Canvas>
					</Border>
					<Track x:Uid="PART_Track" Grid.Row="1" x:Name="PART_Track">
						<Track.DecreaseRepeatButton>
							<RepeatButton x:Uid="RepeatButton1" x:Name="RepeatButton1" Command="Slider.DecreaseLarge">
								<RepeatButton.Style>
									<Style x:Uid="Style_14" TargetType="{x:Type RepeatButton}">
										<Setter x:Uid="Setter_19" Property="OverridesDefaultStyle" Value="True"/>
										<Setter x:Uid="Setter_20" Property="IsTabStop" Value="False"/>
										<Setter x:Uid="Setter_21" Property="Focusable" Value="False"/>
										<Setter x:Uid="Setter_22" Property="Template">
											<Setter.Value>
												<ControlTemplate x:Uid="ControlTemplate_13" TargetType="{x:Type RepeatButton}">
													<Border x:Uid="Border_4" Background="#00FFFFFF" x:Name="Border"/>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
									</Style>
								</RepeatButton.Style>
							</RepeatButton>
						</Track.DecreaseRepeatButton>
						<Track.IncreaseRepeatButton>
							<RepeatButton x:Uid="RepeatButton" x:Name="RepeatButton" Command="Slider.IncreaseLarge">
								<RepeatButton.Style>
									<Style x:Uid="Style_15" TargetType="{x:Type RepeatButton}">
										<Setter x:Uid="Setter_23" Property="OverridesDefaultStyle" Value="True"/>
										<Setter x:Uid="Setter_24" Property="IsTabStop" Value="False"/>
										<Setter x:Uid="Setter_25" Property="Focusable" Value="False"/>
										<Setter x:Uid="Setter_26" Property="Template">
											<Setter.Value>
												<ControlTemplate x:Uid="ControlTemplate_14" TargetType="{x:Type RepeatButton}">
													<Border x:Uid="Border_5" Background="#00FFFFFF" x:Name="Border"/>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
									</Style>
								</RepeatButton.Style>
							</RepeatButton>
						</Track.IncreaseRepeatButton>
						<Track.Thumb>
							<Thumb x:Uid="Thumb" x:Name="Thumb">
								<Thumb.Style>
									<Style x:Uid="Style_16" TargetType="{x:Type Thumb}">
										<Setter x:Uid="Setter_27" Property="OverridesDefaultStyle" Value="True"/>
										<Setter x:Uid="Setter_28" Property="Height" Value="22"/>
										<Setter x:Uid="Setter_29" Property="Width" Value="11"/>
										<Setter x:Uid="Setter_30" Property="Foreground" Value="#FF008000"/>
										<Setter x:Uid="Setter_31" Property="Template">
											<Setter.Value>
												<ControlTemplate x:Uid="ControlTemplate_15" TargetType="{x:Type Thumb}">
													<Rectangle x:Uid="Rectangle" Fill="#FFFFFFFF" RadiusX="3.19867667674004" RadiusY="3.19867667674004" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0" Width="7" Height="16" x:Name="Rectangle">
														<Rectangle.BitmapEffect>
															<DropShadowBitmapEffect x:Uid="DropShadowBitmapEffect_1" Direction="315" ShadowDepth="2" Softness="0.5" Opacity="0.8"/>
														</Rectangle.BitmapEffect>
													</Rectangle>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
									</Style>
								</Thumb.Style>
							</Thumb>
						</Track.Thumb>
					</Track>
				</Grid>
			</Border>
			<ControlTemplate.Triggers>
				<Trigger x:Uid="Trigger_3" Property="TickPlacement" Value="TopLeft">
					<Setter x:Uid="Setter_32" Property="Visibility" Value="Visible" TargetName="TopTick"/>
					<Setter x:Uid="Setter_33" Property="Style" TargetName="Thumb">
						<Setter.Value>
							<Style x:Uid="Style_17" TargetType="{x:Type Thumb}">
							</Style>
						</Setter.Value>
					</Setter>
				</Trigger>
				<Trigger x:Uid="Trigger_4" Property="TickPlacement" Value="BottomRight">
					<Setter x:Uid="Setter_34" Property="Visibility" Value="Visible" TargetName="BottomTick"/>
					<Setter x:Uid="Setter_35" Property="Style" TargetName="Thumb">
						<Setter.Value>
							<Style x:Uid="Style_18" TargetType="{x:Type Thumb}">
							</Style>
						</Setter.Value>
					</Setter>
				</Trigger>
				<Trigger x:Uid="Trigger_5" Property="TickPlacement" Value="Both">
					<Setter x:Uid="Setter_36" Property="Visibility" Value="Visible" TargetName="TopTick"/>
					<Setter x:Uid="Setter_37" Property="Visibility" Value="Visible" TargetName="BottomTick"/>
				</Trigger>
				<Trigger x:Uid="Trigger_6" Property="IsKeyboardFocused" Value="True">
					<Setter x:Uid="Setter_38" Property="Foreground" Value="#FFFFA500" TargetName="Thumb"/>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>

    
    <SolidColorBrush x:Uid="SolidColorBrush_1" x:Key="TabBorderBrush" Color="#9ABAE6" />
    <SolidColorBrush x:Uid="SolidColorBrush_2" x:Key="TabTextBrush" Color="#4971A3" />

    <SolidColorBrush x:Uid="SolidColorBrush_3" x:Key="DisabledForegroundBrush" Color="#888" />
    <SolidColorBrush x:Uid="SolidColorBrush_4" x:Key="DisabledBackgroundBrush" Color="#EEE" />
    <SolidColorBrush x:Uid="SolidColorBrush_5" x:Key="DisabledBorderBrush" Color="#AAA" />
    <SolidColorBrush x:Uid="SolidColorBrush_6" x:Key="SolidBorderBrush" Color="#888" />
    <SolidColorBrush x:Uid="SolidColorBrush_7" x:Key="LightBorderBrush" Color="#AAA" />

    <LinearGradientBrush x:Uid="LinearGradientBrush_5" x:Key="CustomerPanelBackgoundBrush" StartPoint="0,0" EndPoint="0,1">
      <GradientBrush.GradientStops>
        <GradientStopCollection x:Uid="GradientStopCollection_1">
          <GradientStop x:Uid="GradientStop_6" Color="#C8D8ED" Offset="0.0"/>
          <GradientStop x:Uid="GradientStop_7" Color="#DDEDF9" Offset="1.0"/>
        </GradientStopCollection>
      </GradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush x:Uid="LinearGradientBrush_6" x:Key="TabPressedBrush" StartPoint="0,0" EndPoint="0,1">
      <GradientBrush.GradientStops>
        <GradientStopCollection x:Uid="GradientStopCollection_2">
          <GradientStop x:Uid="GradientStop_8" Color="sc#1, 0.188008219, 0.188008219, 0.188008219" Offset="0.0"/>
          <GradientStop x:Uid="GradientStop_9" Color="#C5DBF6" Offset="0.5"/>
          <GradientStop x:Uid="GradientStop_10" Color="#EEF7FF" Offset="1.0"/>
        </GradientStopCollection>
      </GradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush x:Uid="LinearGradientBrush_7" x:Key="TabBackgoundBrush" StartPoint="0,0" EndPoint="0,1">
      <GradientBrush.GradientStops>
        <GradientStopCollection x:Uid="GradientStopCollection_3">
          <GradientStop x:Uid="GradientStop_11" Color="#DFE9F6" Offset="0.0"/>
          <GradientStop x:Uid="GradientStop_12" Color="#C7D8EE" Offset="1.0"/>
        </GradientStopCollection>
      </GradientBrush.GradientStops>
    </LinearGradientBrush>
    
    <Style x:Uid="Style_19" TargetType="{x:Type TabItem}">
      <Setter x:Uid="Setter_39" Property="Template">
        <Setter.Value>
          <ControlTemplate x:Uid="ControlTemplate_16" TargetType="{x:Type TabItem}">
            <Grid x:Uid="Grid_4">
              <Border 
                x:Uid="Border_6" Name="Border"
                Margin="0"
                BorderBrush="sc#1, 0.172733724, 0.26115334, 0.419306517" 
                BorderThickness="0"
                CornerRadius="2,2,2,0"
                Background="#FFEEEEEE">
                  <Grid x:Uid="Grid_5">
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition x:Uid="ColumnDefinition_7"/>
                    <ColumnDefinition x:Uid="ColumnDefinition_8"/>
                  </Grid.ColumnDefinitions>
                  <ContentPresenter x:Uid="ContentSite" Grid.Column="1" x:Name="ContentSite"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       ContentSource="Header"
                       Margin="5,2,5,2"                    
                       RecognizesAccessKey="True" />
                </Grid>
              </Border>
            </Grid>
            <ControlTemplate.Triggers>
              <Trigger x:Uid="Trigger_7" Property="IsSelected" Value="True">
                <Setter x:Uid="Setter_40" Property="Panel.ZIndex" Value="10" />
                <Setter x:Uid="Setter_41" TargetName="Border" Property="Background" Value="#FF646464">
                </Setter>
                <Setter x:Uid="Setter_42" TargetName="Border" Property="BorderThickness" Value="0" />
                <Setter x:Uid="Setter_43" Property="Foreground" Value="#FFFFFFFF"/>
                <Setter x:Uid="Setter_44" Property="FontFamily" Value="Corbel"/>
              </Trigger>
              <Trigger x:Uid="Trigger_8" Property="IsSelected" Value="false">
                <Setter x:Uid="Setter_45" TargetName="Border" Property="BorderThickness" Value="0" />
                <Setter x:Uid="Setter_46" TargetName="Border" Property="CornerRadius" Value="0,0,0,0" />
                <Setter x:Uid="Setter_47" Property="Foreground" Value="#FFFFFFFF"/>
                <Setter x:Uid="Setter_48" Property="FontFamily" Value="Corbel"/>
              </Trigger>
              <Trigger x:Uid="Trigger_9" Property="IsEnabled" Value="False">
                <Setter x:Uid="Setter_49" TargetName="Border" Property="Background" Value="#FF494949" />
                <Setter x:Uid="Setter_50" TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
                <Setter x:Uid="Setter_51" TargetName="Border" Property="BorderThickness" Value="0" />
                <Setter x:Uid="Setter_52" Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
                <Setter x:Uid="Setter_53" Property="FontFamily" Value="Corbel"/>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>

    
    <Style x:Uid="Style_20" x:Key="GradientPanelSkyblue">
      <Setter x:Uid="Setter_54" Property="Border.Background">
        <Setter.Value>
            <LinearGradientBrush x:Uid="LinearGradientBrush_8" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_4">
                  <TranslateTransform x:Uid="TranslateTransform_10" X="-0.5" Y="-0.5"/>
                  <ScaleTransform x:Uid="ScaleTransform_4" ScaleX="1.4289956532775823" ScaleY="1.4289956532775823"/>
                  <SkewTransform x:Uid="SkewTransform_4" AngleX="0" AngleY="0"/>
                  <RotateTransform x:Uid="RotateTransform_4" Angle="-131.85024611568173"/>
                  <TranslateTransform x:Uid="TranslateTransform_11" X="0.5" Y="0.5"/>
                  <TranslateTransform x:Uid="TranslateTransform_12" X="-0.016370836361375526" Y="-0.0301457724874255"/>
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>
              <GradientStop x:Uid="GradientStop_13" Color="sc#1, 0, 0, 0" Offset="0"/>
              <GradientStop x:Uid="GradientStop_14" Color="sc#1, 0.29602012, 0.29602012, 0.29602012" Offset="1"/>
            </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>
    <Style x:Uid="Style_21" x:Key="GradientPanelBlue">
      <Setter x:Uid="Setter_55" Property="Border.CornerRadius" Value="5" />
      <Setter x:Uid="Setter_56" Property="Border.Background">
        <Setter.Value>
          <LinearGradientBrush x:Uid="LinearGradientBrush_9" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
            <LinearGradientBrush.RelativeTransform>
              <TransformGroup x:Uid="TransformGroup_5">
                <TranslateTransform x:Uid="TranslateTransform_13" X="-0.5" Y="-0.5"/>
                <ScaleTransform x:Uid="ScaleTransform_5" ScaleX="1.23006538471427" ScaleY="1.23006538471427"/>
                <SkewTransform x:Uid="SkewTransform_5" AngleX="0" AngleY="0"/>
                <RotateTransform x:Uid="RotateTransform_5" Angle="-123.82735170210056"/>
                <TranslateTransform x:Uid="TranslateTransform_14" X="0.5" Y="0.5"/>
                <TranslateTransform x:Uid="TranslateTransform_15" X="0.024638870287204885" Y="0.0073852543221838186"/>
              </TransformGroup>
            </LinearGradientBrush.RelativeTransform>
            <GradientStop x:Uid="GradientStop_15" Color="sc#1, 0, 0, 0" Offset="0"/>
            <GradientStop x:Uid="GradientStop_16" Color="sc#1, 0.188008219, 0.188008219, 0.188008219" Offset="1"/>
          </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>
    <Style x:Uid="Style_22" x:Key="GradientPanelGray">
      <Setter x:Uid="Setter_57" Property="Border.CornerRadius" Value="5" />
      <Setter x:Uid="Setter_58" Property="Border.Background">
        <Setter.Value>
            <LinearGradientBrush x:Uid="LinearGradientBrush_10" StartPoint="0,0.5" EndPoint="1,0.5" MappingMode="RelativeToBoundingBox">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_6">
                  <TranslateTransform x:Uid="TranslateTransform_16" X="-0.5" Y="-0.5"/>
                  <ScaleTransform x:Uid="ScaleTransform_6" ScaleX="1.2561094125235255" ScaleY="1.2561094125235255"/>
                  <SkewTransform x:Uid="SkewTransform_6" AngleX="0" AngleY="0"/>
                  <RotateTransform x:Uid="RotateTransform_6" Angle="-125.19487551423414"/>
                  <TranslateTransform x:Uid="TranslateTransform_17" X="0.5" Y="0.5"/>
                  <TranslateTransform x:Uid="TranslateTransform_18" X="-0.033095753372282849" Y="-0.010988147858749384"/>
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>
              <GradientStop x:Uid="GradientStop_17" Color="sc#1, 0.0259903651, 0.0259903651, 0.0259903651" Offset="0"/>
              <GradientStop x:Uid="GradientStop_18" Color="sc#1, 0.161005244, 0.161005244, 0.161005244" Offset="1"/>
            </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>
    <Style x:Uid="Style_23" x:Key="GradientCanvasReverseGray">
      <Setter x:Uid="Setter_59" Property="Border.CornerRadius" Value="5" />
      <Setter x:Uid="Setter_60" Property="Border.BitmapEffect">
        <Setter.Value>
          <OuterGlowBitmapEffect x:Uid="OuterGlowBitmapEffect_2" GlowColor="sc#1, 0.944091558, 0.944091558, 0.944091558" GlowSize="4" />
        </Setter.Value>
      </Setter>
      <Setter x:Uid="Setter_61" Property="Border.Background">
        <Setter.Value>
          <LinearGradientBrush x:Uid="LinearGradientBrush_11" StartPoint="0,0.5" EndPoint="1,0.5">
            <LinearGradientBrush.RelativeTransform>
              <TransformGroup x:Uid="TransformGroup_7">
                <TranslateTransform x:Uid="TranslateTransform_19" X="-0.5" Y="-0.5"/>
                <ScaleTransform x:Uid="ScaleTransform_7" ScaleX="0.97864910171118813" ScaleY="0.97864910171118813"/>
                <SkewTransform x:Uid="SkewTransform_7" AngleX="0" AngleY="0"/>
                <RotateTransform x:Uid="RotateTransform_7" Angle="-220.6119466112481"/>
                <TranslateTransform x:Uid="TranslateTransform_20" X="0.5" Y="0.5"/>
                <TranslateTransform x:Uid="TranslateTransform_21" X="-0.010282899521944422" Y="-0.033333350752817029"/>
              </TransformGroup>
            </LinearGradientBrush.RelativeTransform>
            <GradientStop x:Uid="GradientStop_19" Color="sc#1, 0.7415692, 0.7415692, 0.7415692" Offset="0"/>
            <GradientStop x:Uid="GradientStop_20" Color="sc#1, 0.944091558, 0.944091558, 0.944091558" Offset="1"/>
          </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>


		<Storyboard x:Uid="Storyboard_8" x:Key="TimelineFullScreenMoviePlayer" d:StoryboardName="TimelineFullScreenMoviePlayer">
			<ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_1" Storyboard.TargetProperty="(UIElement.BitmapEffect)" Storyboard.TargetName="borderMoviePlayer" BeginTime="00:00:00" Duration="00:00:01.0010000">
				<DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_1" d:KeyEase="Linear;Hold;0.5;0.5;0;0" Value="{x:Null}" KeyTime="00:00:00"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_1" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_1" KeyTime="00:00:00.2000000" Value="1.367"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_2" KeyTime="00:00:00.5000000" Value="2.0084999999999997"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_3" KeyTime="00:00:00.8000000" Value="2.36"/>
        <!-- video dimension should be preserved??-->
        <!--<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1.94"/>-->
      </DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_2" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_4" KeyTime="00:00:00.2000000" Value="1.306"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_5" KeyTime="00:00:00.5000000" Value="1.918"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_6" KeyTime="00:00:00.8000000" Value="1.94"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_3" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_7" KeyTime="00:00:00.2000000" Value="-74"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_8" KeyTime="00:00:00.5000000" Value="-185"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_9" KeyTime="00:00:00.8000000" Value="-296"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_4" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_10" KeyTime="00:00:00.2000000" Value="44"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_11" KeyTime="00:00:00.5000000" Value="110"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_12" KeyTime="00:00:00.8000000" Value="160"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_5" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_13" KeyTime="00:00:00.2000000" Value="45"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_14" KeyTime="00:00:00.5000000" Value="45"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_15" KeyTime="00:00:00.8000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_6" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleY)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_16" KeyTime="00:00:00.2000000" Value="45"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_17" KeyTime="00:00:00.5000000" Value="45"/>
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_18" KeyTime="00:00:00.8000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
      <Int32AnimationUsingKeyFrames x:Uid="Int32AnimationUsingKeyFrames_1" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(Panel.ZIndex)">
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_1" KeyTime="00:00:00.5000000" Value="99"/>
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_2" KeyTime="00:00:00.8000000" Value="99"/>
      </Int32AnimationUsingKeyFrames>
    </Storyboard>
    
		<Storyboard x:Uid="Storyboard_9" x:Key="TimelineShirinkMoviePlayer" d:StoryboardName="TimelineShirinkMoviePlayer">
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_7" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_19" KeyTime="00:00:00.8000000" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_8" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_20" KeyTime="00:00:00.8000000" Value="1"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_9" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_21" KeyTime="00:00:00.8000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_10" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_22" KeyTime="00:00:00.8000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<Int32AnimationUsingKeyFrames x:Uid="Int32AnimationUsingKeyFrames_2" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(Panel.ZIndex)">
				<SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_3" KeyTime="00:00:00.5000000" Value="95"/>
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_4" KeyTime="00:00:00.8000000" Value="95"/>
      </Int32AnimationUsingKeyFrames>
    </Storyboard>
    
  	<Storyboard x:Uid="Storyboard_10" x:Key="TimelineFullScreenMapping">
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_11" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_23" KeyTime="00:00:00.2000000" Value="1.3745"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_24" KeyTime="00:00:00.5000000" Value="1.9363"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_25" KeyTime="00:00:00.8000000" Value="2.498"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_12" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_26" KeyTime="00:00:00.2000000" Value="1.315"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_27" KeyTime="00:00:00.5000000" Value="1.7875"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_28" KeyTime="00:00:00.8000000" Value="2.26"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_13" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_29" KeyTime="00:00:00.2000000" Value="-74.5"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_30" KeyTime="00:00:00.5000000" Value="-186.25"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_31" KeyTime="00:00:00.8000000" Value="-298"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_14" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_32" KeyTime="00:00:00.2000000" Value="-48.5"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_33" KeyTime="00:00:00.5000000" Value="-121.25"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_34" KeyTime="00:00:00.8000000" Value="-194"/>
  		</DoubleAnimationUsingKeyFrames>

      <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_2" Storyboard.TargetProperty="(UIElement.BitmapEffect)" Storyboard.TargetName="borderMappingPanel" BeginTime="00:00:00" Duration="00:00:00.0010000">
        <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_2" d:KeyEase="Linear;Hold;0.5;0.5;0;0" Value="{x:Null}" KeyTime="00:00:00"/>
      </ObjectAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_15" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_35" KeyTime="00:00:00.2000000" Value="-45"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_36" KeyTime="00:00:00.5000000" Value="-45"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_37" KeyTime="00:00:00.8000000" Value="0"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_16" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleY)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_38" KeyTime="00:00:00.2000000" Value="-45"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_39" KeyTime="00:00:00.5000000" Value="-45"/>
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_40" KeyTime="00:00:00.8000000" Value="0"/>
  		</DoubleAnimationUsingKeyFrames>
      <Int32AnimationUsingKeyFrames x:Uid="Int32AnimationUsingKeyFrames_3" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(Panel.ZIndex)">
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_5" KeyTime="00:00:00.5000000" Value="96"/>
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_6" KeyTime="00:00:00.8000000" Value="96"/>
      </Int32AnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Uid="Storyboard_11" x:Key="TimelineShrinkMapping">
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_17" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_41" KeyTime="00:00:00.8000000" Value="1"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_18" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_42" KeyTime="00:00:00.8000000" Value="1"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_19" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_43" KeyTime="00:00:00.8000000" Value="0"/>
  		</DoubleAnimationUsingKeyFrames>
  		<DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_20" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
  			<SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_44" KeyTime="00:00:00.8000000" Value="0"/>
  		</DoubleAnimationUsingKeyFrames>
  		<Int32AnimationUsingKeyFrames x:Uid="Int32AnimationUsingKeyFrames_4" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(Panel.ZIndex)">
  			<SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_7" KeyTime="00:00:00.5000000" Value="94"/>
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_8" KeyTime="00:00:00.8000000" Value="94"/>
      </Int32AnimationUsingKeyFrames>
  	</Storyboard>

    <Storyboard x:Uid="Storyboard_12" x:Key="CaptureMapping">
      <ObjectAnimationUsingKeyFrames x:Uid="ObjectAnimationUsingKeyFrames_3" Storyboard.TargetProperty="(UIElement.BitmapEffect)" Storyboard.TargetName="borderMoviePlayer" BeginTime="00:00:00" Duration="00:00:01">
        <DiscreteObjectKeyFrame x:Uid="DiscreteObjectKeyFrame_3" d:KeyEase="Linear;Hold;0.5;0.5;0;0" Value="{x:Null}" KeyTime="00:00:00"/>
      </ObjectAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_21" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_45" KeyTime="00:00:00.500000" Value="2.498"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_22" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_46" KeyTime="00:00:00.500000" Value="2.26"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_23" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_47" KeyTime="00:00:00.500000" Value="-298"/>
      </DoubleAnimationUsingKeyFrames>
      <DoubleAnimationUsingKeyFrames x:Uid="DoubleAnimationUsingKeyFrames_24" BeginTime="00:00:00" Storyboard.TargetName="gridMapping" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
        <SplineDoubleKeyFrame x:Uid="SplineDoubleKeyFrame_48" KeyTime="00:00:00.500000" Value="-194"/>
      </DoubleAnimationUsingKeyFrames>
      <Int32AnimationUsingKeyFrames x:Uid="Int32AnimationUsingKeyFrames_5" BeginTime="00:00:00" Storyboard.TargetName="gridMoviePlayer" Storyboard.TargetProperty="(Panel.ZIndex)">
        <SplineInt32KeyFrame x:Uid="SplineInt32KeyFrame_9" KeyTime="00:00:00.500000" Value="96"/>
      </Int32AnimationUsingKeyFrames>
    </Storyboard>
    
  </Window.Resources>

  <Window.CommandBindings>
    <CommandBinding x:Uid="CommandBinding_1" Executed="OnTakingSnapshot" Command="{x:Static local:MVEMain.TakeSnapshotCommand}" CanExecute="CanTakeSnapshot"/>
  </Window.CommandBindings>

  
<Grid x:Uid="MainGrid" x:Name="MainGrid" AllowDrop="True" Background="#FFC8C8C8">
    <Grid.RowDefinitions>
      <RowDefinition x:Uid="RowDefinition_4" Height="65" />
      <RowDefinition x:Uid="RowDefinition_5" Height="293" />
      <RowDefinition x:Uid="RowDefinition_6" Height="178" />
      <RowDefinition x:Uid="RowDefinition_7" Height="224" />
      

    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition x:Uid="ColumnDefinition_9" Width="590" />
      <ColumnDefinition x:Uid="ColumnDefinition_10" Width="434" />
    </Grid.ColumnDefinitions>
    <Border x:Uid="Border_7" Style="{StaticResource GradientPanelSkyblue}" Grid.ColumnSpan="2" Grid.RowSpan="5"  Margin="0,0,0,0" Background="#FFC8C8C8" />
    <Border x:Uid="Border_8" Style="{StaticResource GradientPanelGray}" Grid.Row="3" Grid.RowSpan="2" Margin="0,5,0,0" Background="#FFC8C8C8" />
    <Border x:Uid="Border_9" Style="{StaticResource GradientPanelGray}" Grid.Column="1" Margin="0,1,0,0" Grid.Row="0"  Grid.RowSpan="2"/>
    <Border x:Uid="Border_10" Style="{StaticResource GradientPanelGray}" Grid.Row="2" Margin="5,5,5,0" Grid.Column="1" Grid.RowSpan="2" />

  
  <Grid x:Uid="Header" x:Name="Header" Grid.Column="0" Grid.Row="0">
<Grid.Background>
<ImageBrush x:Uid="ImageBrush_1" AlignmentX="Left" ImageSource="Resources/header.png" Stretch="None" />
</Grid.Background>

    <Grid.RowDefinitions>
      <RowDefinition x:Uid="RowDefinition_8" Height= "30" />
      <RowDefinition x:Uid="RowDefinition_9" Height="34" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition x:Uid="ColumnDefinition_11" Width="350" />
      <ColumnDefinition x:Uid="ColumnDefinition_12" Width="240" />
    </Grid.ColumnDefinitions>
    <Button x:Uid="cmdLogo" x:Name="cmdLogo" Style="{StaticResource GrowingSmartButton}" Width="70" Height="64" FixedPage.Left="0" Grid.RowSpan="2" HorizontalAlignment="Left"  MouseLeftButtonUp="OpenMeetMenu">
      <Rectangle x:Uid="MVElogo" Fill="#00000000" Width="70" Name="MVElogo" MouseLeftButtonUp="OpenMeetMenu" >

        <Rectangle.ContextMenu>
          <ContextMenu x:Uid="cMenu" Name="cMenu" StaysOpen="True">
            <!--
            <MenuItem x:Uid="cmMaximize" Header="最大化/最大化解除" Name="cmMaximize" />
            <MenuItem x:Uid="cmSound" Header="音量調整" Name="cmSound" />
            <MenuItem x:Uid="cmCapture" Header="Mapのキャプチャ" Name="cmCapture" />
            <MenuItem x:Uid="cmExit" Header="終了" Name="cmExit" />
            -->
            <MenuItem x:Uid="cmMaximize" Header="Maximize/Restore" Name="cmMaximize" />
            <MenuItem x:Uid="cmSound" Header="Video/Audio volume" Name="cmSound" />
            <MenuItem x:Uid="cmCapture" Header="Export Map as picture" Name="cmCapture" />
            <MenuItem x:Uid="cmExit" Header="Exit" Name="cmExit" />
          </ContextMenu>
        </Rectangle.ContextMenu>
        
      </Rectangle>
    </Button>

    <TextBox x:Uid="textSearchKeyword" Margin="0,5,38,7" x:Name="textSearchKeyword" Grid.Row="1" AllowDrop="True" d:LayoutOverrides="Margin" Width="200" Grid.ColumnSpan="2" HorizontalAlignment="Right" />
    <Button x:Uid="searchKeywordSend" x:Name="searchKeywordSend"  Grid.Row="1" Style="{StaticResource GrowingSmartButton}" Margin="20,5,0,10" HorizontalAlignment="Right" Grid.ColumnSpan="2" Width="22" Height="22" >
      <Image x:Uid="Image_7" Source="/Resources/rupe.png" Margin="0,0,0,0" />
    </Button>
  </Grid>

  <StackPanel x:Uid="SearchResultFrame" x:Name="SearchResultFrame" Grid.Row="1" Grid.RowSpan="2" Orientation="Horizontal" MaxWidth="590" Height="510" Background="#FFC8C8C8" >
    
    <TabControl x:Uid="tabMovieListMode" x:Name="tabMovieListMode" Style="{StaticResource RoundTabControl}" BorderThickness="0,0,0,0" Margin="0" >
      <TabControl.Background>
        <LinearGradientBrush x:Uid="LinearGradientBrush_12" StartPoint="0,0" EndPoint="0,1">
          <LinearGradientBrush.RelativeTransform>
            <TransformGroup x:Uid="TransformGroup_8">
              <TranslateTransform x:Uid="TranslateTransform_22" X="0" Y="-0.5"/>
              <ScaleTransform x:Uid="ScaleTransform_8" ScaleX="1.3635116215897241" ScaleY="1.3635116215897241"/>
              <SkewTransform x:Uid="SkewTransform_8" AngleX="0" AngleY="0"/>
              <RotateTransform x:Uid="RotateTransform_8" Angle="-46.514717352353848"/>
              <TranslateTransform x:Uid="TranslateTransform_23" X="0" Y="0.5"/>
              <TranslateTransform x:Uid="TranslateTransform_24" X="0.49311966882608332" Y="0.01222589185054198"/>
            </TransformGroup>
          </LinearGradientBrush.RelativeTransform>
          <GradientStop x:Uid="GradientStop_21" Color="sc#1, 0.161005244, 0.161005244, 0.161005244" Offset="0"/>
          <GradientStop x:Uid="GradientStop_22" Color="sc#1, 0.0259903651, 0.0259903651, 0.0259903651" Offset="1"/>
        </LinearGradientBrush>
      </TabControl.Background>
      
      <TabItem x:Uid="tabSearchResult" Header="search results" Name="tabSearchResult" Background="#FFFF0000" Foreground="#FF0000FF">
        <StackPanel x:Uid="gridSearchResultTab" Name="gridSearchResultTab" Orientation="Vertical" Height="Auto" Background="#FF646464">
          
          <StackPanel x:Uid="StackPanel_11" Orientation="Horizontal" Background="#FF646464">
            <RadioButton x:Uid="cmdSortByDate" x:Name="cmdSortByDate"  Style="{StaticResource GrowingRadioButton}" FocusVisualStyle="{StaticResource NonFocusVisual}" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" Margin="0" VerticalAlignment="Top" Width="40" Height="17" >
              <Image x:Uid="Image_8" Source="Resources/dateSortButton.png" />
            </RadioButton>
            <RadioButton x:Uid="cmdSortByAlphabetical" x:Name="cmdSortByAlphabetical"  Style="{StaticResource GrowingRadioButton}" IsChecked="True" FocusVisualStyle="{StaticResource NonFocusVisual}" Background="{x:Null}" Foreground="sc#1, 1, 1, 1" BorderBrush="{x:Null}" Margin="0" VerticalAlignment="Top" Width="19" Height="22" >
              <Image x:Uid="Image_9" Source="Resources/AlphabeticalSortButton.png" />
            </RadioButton>
          </StackPanel>

          <ListBox x:Uid="listSegmentMovies" x:Name="listSegmentMovies" Margin="8,0,9,25" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource ScrollBarListBoxTemplate}" IsSynchronizedWithCurrentItem="True"  ItemsSource="{Binding Source={StaticResource SegmentMovies}}" Padding="5" FocusVisualStyle="{x:Null}" AllowDrop="True" Height="420" Width="565" Foreground="#FF000000" />
        </StackPanel>
      </TabItem>
      
      <TabItem x:Uid="tabHistory" Header="history" Name="tabHistory" Foreground="#FF0000FF" Background="#EEEEEEFF">
        <Grid x:Uid="gridHistoryTab" Name="gridHistoryTab" Background="#FF494949">
          <Label x:Uid="labelMovieHistory" d:LayoutOverrides="None" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="7,8,0,0" Width="182" Height="17.5547169811321" Grid.RowSpan="1" x:Name="labelMovieHistory" Content="History:" Foreground="#FFFF7300" Padding="1,1,1,1"/>
              <ListBox x:Uid="listSegmentHistory" x:Name="listSegmentHistory" Margin="8,25,9,25" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource ScrollBarListBoxTemplate}" IsSynchronizedWithCurrentItem="True"  ItemsSource="{Binding Source={StaticResource SegmentHistory}}" Padding="5" FocusVisualStyle="{x:Null}" AllowDrop="True" Height="450" Width="565" />

        </Grid>
      </TabItem>
      
   
      <TabItem x:Uid="tabBookmark" Header="bookmarks" Name="tabBookmark" Foreground="#FF0000FF">
        <Grid x:Uid="gridBookmarkTab" Name="gridBookmarkTab" Background="#FF494949">
          <Button x:Uid="cmdDeleteBookmark" Style="{StaticResource GrowingSmartButton}" x:Name ="cmdDeleteBookmark" Margin="0,0,30,0" Opacity="1" Width="32" Foreground="#FFFFFFFF" VerticalAlignment="Top" HorizontalAlignment="Right"  Height="32">
            <Image x:Uid="Image_10" Source="Resources/CanvasRecycleBin.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
          </Button>

          <ListBox x:Uid="listSegmentBookmark" x:Name="listSegmentBookmark" Margin="8,25,9,15" Background="{x:Null}" BorderBrush="{x:Null}" Style="{StaticResource ScrollBarListBoxTemplate}" IsSynchronizedWithCurrentItem="True"  ItemsSource="{Binding Source={StaticResource SegmentBookmark}}"  ItemTemplate="{StaticResource BookmarkSegmentTemplate}" Padding="5" FocusVisualStyle="{x:Null}" AllowDrop="True" Height="445" Width="565" />
        </Grid>
      </TabItem>
    </TabControl>
  </StackPanel>

  
  <StackPanel x:Uid="RelatedFrame" x:Name="RelatedFrame" Grid.Row="3" Orientation="Vertical" Background="#FFC8C8C8" Margin="0,7,8,3">
    <TabControl x:Uid="tabClipListMode" x:Name="tabClipListMode" Style="{StaticResource RelatedTabControl}" BorderThickness="0" Background="#FF646464" Margin="0,0,0,0">
      <TabItem x:Uid="tabSegmentClips" x:Name="tabSegmentClips" Foreground="#FFFFFFFF" Margin="0,-3,0,0">
        <TabItem.Header>
          <Image x:Uid="Image_11" Source="Resources/clipsTab.png" Margin="0" Height="63" Width="22" />
        </TabItem.Header>
        <ListBox x:Uid="listClipSegmentClips" x:Name="listClipSegmentClips" Margin="0" Style="{StaticResource RelatedListBoxTemplate}" ItemTemplate="{StaticResource RelatedSegmentTemplate}"  IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Source={StaticResource ClipSegments}}" Height="145" Width="530"  />
      </TabItem>

      <TabItem  x:Uid="tabRelatedClips" x:Name="tabRelatedClips" Foreground="#FFFFFFFF" >
        <TabItem.Header >
          <Image x:Uid="Image_12" Source="Resources/relationsTab.png" Margin="0,4,0,4" Width="22" Height="63" />
        </TabItem.Header>

        <ListBox x:Uid="listRelatedSegmentClips" x:Name="listRelatedSegmentClips" Margin="0" Style="{StaticResource RelatedListBoxTemplate}" ItemTemplate="{StaticResource RelatedSegmentTemplate}"  IsSynchronizedWithCurrentItem="True"  ItemsSource="{Binding Source={StaticResource RelatedSegments}}"  Height="155" Width="530" />
      </TabItem>

    </TabControl>   
  </StackPanel>

  
  <StackPanel x:Uid="MoviePlayerFrame" x:Name="MoviePlayerFrame" Grid.Column="1" Grid.RowSpan="2" Orientation="Vertical" Grid.Row="0">
    <Grid x:Uid="gridMoviePlayer" x:Name="gridMoviePlayer" Margin="-5,0,0,0" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="Margin" Width="430" Height="358" Background="#FFD2D2D2">
      <Grid.ColumnDefinitions>
        <ColumnDefinition x:Uid="ColumnDefinition_13"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition x:Uid="RowDefinition_10"/>
      </Grid.RowDefinitions>

      <Grid.RenderTransform>
        <TransformGroup x:Uid="TransformGroup_9">
          <ScaleTransform x:Uid="ScaleTransform_9" ScaleX="1" ScaleY="1"/>
          <SkewTransform x:Uid="SkewTransform_9" AngleX="0" AngleY="0"/>
          <RotateTransform x:Uid="RotateTransform_9" Angle="0"/>
          <TranslateTransform x:Uid="TranslateTransform_25" X="0" Y="0"/>
        </TransformGroup>
      </Grid.RenderTransform>
<Border x:Uid="borderMoviePlayer" x:Name="borderMoviePlayer" d:LayoutOverrides="Width, Height" Style="{StaticResource GradientCanvasReverseGray}" Margin="2,5,4,4" CornerRadius="5,5,5,5" RenderTransformOrigin="0.5,0.5" />
<MediaElement x:Uid="mediaMoviePlayer" d:LayoutOverrides="None" DataContext="{Binding SelectedItem, ElementName=listSegmentMovies}"  Margin="3,3,3,30" Width="400" Height="300" Grid.Row="0" Grid.RowSpan="1" Grid.Column="0" Grid.ColumnSpan="1" x:Name="mediaMoviePlayer" Source="{Binding XPath=../url}" LoadedBehavior="Manual" />

      <InkCanvas x:Uid="inkCnvsMovieCommander" x:Name="inkCnvsMovieCommander" Margin="100,10,9,0"  Height="10" Width="10" Opacity="0" EditingMode="GestureOnly" OpacityMask="{x:Null}" />      

      <Image x:Uid="BufferingImage" Source="Resources/buffering.png" HorizontalAlignment="Left" VerticalAlignment="Bottom" x:Name="BufferingImage"  Margin="20,0,0,2" Width="76" Height="20" Grid.Row="0" Grid.Column="0" Visibility="Visible" />

      <Button x:Uid="cmdRewindMovie" Style="{StaticResource GrowingSmartButton}" Opacity="1" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="176,0,0,2" Width="22" Height="22" Grid.Row="0" Grid.Column="0" Background="{x:Null}" x:Name="cmdRewindMovie" BorderBrush="{x:Null}">
        <Image x:Uid="Image_13" Source="Resources/MovieRewingButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" />
      </Button>

      <Button x:Uid="cmdPlayMovie" Style="{StaticResource GrowingSmartButton}" Opacity="1" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="202,0,0,2" Width="22" Height="22" Grid.Row="0" Grid.Column="0" Background="{x:Null}" x:Name="cmdPlayMovie" BorderBrush="{x:Null}">
        <Image x:Uid="Image_14" Source="Resources/MoviePlayButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" />
      </Button>

      <Button x:Uid="cmdPauseMovie" Style="{StaticResource GrowingSmartButton}" Visibility="Hidden" Opacity="1" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="202,0,0,2" Width="22" Height="22" Grid.Row="0" Grid.Column="0" Background="{x:Null}" x:Name="cmdPauseMovie" BorderBrush="{x:Null}">
        <Image x:Uid="Image_15" Source="Resources/MoviePauseButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" />
      </Button>

      <Button x:Uid="cmdFastFowardMovie" Style="{StaticResource GrowingSmartButton}" Opacity="1" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="226,0,0,2" Width="22" Height="22" Grid.Row="0" Grid.Column="0" Background="{x:Null}" x:Name="cmdFastFowardMovie" BorderBrush="{x:Null}">
        <Image x:Uid="Image_16" Source="Resources/MovieFastFowardButton.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
      </Button>

      <Slider x:Uid="sliderMoviePosition" d:LayoutOverrides="Width, Height, GridBox" VerticalAlignment="Bottom" Margin="10,0,9,20" Height="19.4856536158042" Focusable="False" x:Name="sliderMoviePosition" Template="{DynamicResource SmartSlider}"/>

      <Button x:Uid="cmdFullScreenMoviePlayer" Style="{StaticResource GrowingSmartButton}" d:LayoutOverrides="Width, Height, GridBox" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,9,5" Width="25" Height="23" Grid.Row="0" Grid.Column="0" x:Name="cmdFullScreenMoviePlayer">
        <Image x:Uid="Image_17" Visibility="Visible" VerticalAlignment="Center" Margin="0,0,0,0" Width="Auto" Height="Auto" Source="Resources/FullScreenButton.png"/>
      </Button>

      <Button x:Uid="cmdRestoreScreenMoviePlayer" Style="{StaticResource GrowingSmartButton}" d:LayoutOverrides="Width, Height, GridBox" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,9,5" Width="25" Height="23" Grid.Row="0" Grid.Column="0" x:Name="cmdRestoreScreenMoviePlayer">
        <Image x:Uid="Image_18" Visibility="Visible" VerticalAlignment="Center" Margin="0,0,0,0" Width="Auto" Height="Auto" Source="Resources/RestoreScreenButton.png"/>
      </Button>
      
      <Button x:Uid="cmdTakingSnapshot" Style="{StaticResource GrowingSmartButton}" d:LayoutOverrides="Width, Height, GridBox" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="286,0,0,2" Width="23" Height="23" Grid.Row="0" Grid.Column="0" x:Name="cmdTakingSnapshot" Command="local:MVEMain.TakeSnapshotCommand">
        <Image x:Uid="Image_19" Visibility="Visible" VerticalAlignment="Center" Margin="0,0,0,0" Width="Auto" Height="Auto" Source="Resources/snapshot.png" />
      </Button>
    </Grid>
  </StackPanel>

  
  <StackPanel x:Uid="MappingFrame" x:Name="MappingFrame"  Grid.Column="1" Grid.Row="2" Grid.RowSpan="2" Orientation="Vertical" >

    <Grid x:Uid="gridMapping" Margin="-5,0,0,0" x:Name="gridMapping" RenderTransformOrigin="0.5,0.5" Width="430" Height="350" Background="#FFD2D2D2">
<Grid.RowDefinitions>
<RowDefinition x:Uid="RowDefinition_11" Height="0.500952380952381*" />
<RowDefinition x:Uid="RowDefinition_12" Height="0.319635854341737*" />
<RowDefinition x:Uid="RowDefinition_13" Height="0.179411764705882*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
      <ColumnDefinition x:Uid="ColumnDefinition_14" Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.RenderTransform>
        <TransformGroup x:Uid="TransformGroup_10">
          <ScaleTransform x:Uid="ScaleTransform_10" ScaleX="1" ScaleY="1"/>
          <SkewTransform x:Uid="SkewTransform_10" AngleX="0" AngleY="0"/>
          <RotateTransform x:Uid="RotateTransform_10" Angle="0"/>
          <TranslateTransform x:Uid="TranslateTransform_26" X="0" Y="0"/>
        </TransformGroup>
      </Grid.RenderTransform>
      <Border x:Uid="Border_11" Style="{StaticResource GradientPanelGray}" HorizontalAlignment="Right" Margin="0,5,8,5" Width="30" Grid.RowSpan="3" Background="#FF646464" />
      <Border x:Uid="borderMappingPanel" Margin="0,0,41,5" BorderBrush="{x:Null}" CornerRadius="5,5,5,5" Style="{StaticResource GradientCanvasReverseGray}" Name="borderMappingPanel" Grid.RowSpan="3" />
      <InkCanvas x:Uid="inkCnvsMapping" Margin="5,-40,34,16" x:Name="inkCnvsMapping" MinHeight="285" MinWidth="380" Opacity="1" AllowDrop="True" Grid.RowSpan="3" Background="#FFFFFFFF" MaxHeight="285" MaxWidth="380"  >

      </InkCanvas>

      
      <Button x:Uid="cmdCnvsPrevButton" Style="{StaticResource GrowingSmartButton}" Opacity="1" Grid.Row="2" HorizontalAlignment="Left" Margin="150,10,0,20" x:Name="cmdCnvsPrevButton" Width="22" >
        <Image x:Uid="Image_20" Source="Resources/MovieRewingButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" />
      </Button>


      <Label x:Uid="cnvsNumberLabel" Margin="186,10,184,14" x:Name="cnvsNumberLabel" Content="0 / 0" Grid.Row="2" FontSize="14" />

      <Button x:Uid="cmdCnvsNextButton" Style="{StaticResource GrowingSmartButton}" Opacity="1"  HorizontalAlignment="Right" Margin="0,10,158,20" Grid.Row="2" x:Name="cmdCnvsNextButton" Width="22" >
        <Image x:Uid="Image_21" Source="Resources/MovieFastFowardButton.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
      </Button>

      
      <Button x:Uid="cmdAddCnvsButton" Style="{StaticResource GrowingSmartButton}" Opacity="1"  HorizontalAlignment="Left" Margin="45,10,0,20" Grid.Row="2" x:Name="cmdAddCnvsButton" Width="31" >
        <Image x:Uid="addcanvas" Source="Resources/addSlideButton.png" x:Name="addcanvas" VerticalAlignment="Center" HorizontalAlignment="Center" />

      </Button>

      
      <Button x:Uid="cmdDelCnvsButton" Style="{StaticResource GrowingSmartButton}" Opacity="1" Grid.Row="2" HorizontalAlignment="Left" Margin="80,10,0,20" x:Name="cmdDelCnvsButton" Width="37" >
 
      </Button>
      
 
      <Button x:Uid="cmdFullScreenMapping" d:LayoutOverrides="Width, Height, GridBox" Style="{StaticResource GrowingSmartButton}" Margin="0,18,45,20" Width="25" x:Name="cmdFullScreenMapping" HorizontalAlignment="Right" Grid.Row="2">
        <Image x:Uid="Image_22" Visibility="Visible" VerticalAlignment="Center" Width="Auto" Height="Auto" Source="Resources/FullScreenButton.png"/>
      </Button>

      <Button x:Uid="cmdRestoreScreenMapping" Visibility="Hidden" d:LayoutOverrides="Width, Height, GridBox" Style="{StaticResource GrowingSmartButton}" Margin="0,18,45,20" Width="25" x:Name="cmdRestoreScreenMapping" HorizontalAlignment="Right" Grid.Row="2">
        <Image x:Uid="Image_23" Visibility="Visible" VerticalAlignment="Center" Margin="0,0,0,0" Width="Auto" Height="Auto" Source="Resources/RestoreScreenButton.png"/>
      </Button>
      <Button x:Uid="cmdCnvsModeSelect" Style="{StaticResource GrowingSmartButton}" Opacity="1" Width="34" x:Name="cmdCnvsModeSelect" Foreground="#FFFFFFFF" HorizontalAlignment="Right" Margin="0,5,0,0" d:LayoutOverrides="GridBox" VerticalAlignment="Top" Height="34" >
        <Image x:Uid="Image_24" Source="Resources/CanvasSelectionButton.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-5,0,0,0" />
      </Button>
      <Button x:Uid="cmdCnvsModeRectangle" Style="{StaticResource GrowingSmartButton}" HorizontalAlignment="Right" Margin="0,32,0,0" Opacity="1" Width="32" x:Name="cmdCnvsModeRectangle" Foreground="#FFFFFFFF" d:LayoutOverrides="GridBox" VerticalAlignment="Top" Height="32.014" >
        <Image x:Uid="Image_25" Source="Resources/CanvasRectangle.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-5,4,0,0" MaxHeight="33" MaxWidth="33" />
      </Button>
      <Button x:Uid="cmdCnvsModeCircle" Style="{StaticResource GrowingSmartButton}" Margin="0,54.608,-5,63.392" Opacity="1" Width="32" x:Name="cmdCnvsModeCircle" HorizontalAlignment="Right" Foreground="#FFFFFFFF" d:LayoutOverrides="GridBox"   >
        <Image x:Uid="Image_26" Source="Resources/CanvasCircle.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-10,0,4,0" MaxHeight="36" MaxWidth="33" />
      </Button>
      <Button x:Uid="cmdCnvsModeArrow" Style="{StaticResource GrowingSmartButton}" HorizontalAlignment="Right" Margin="0,0,0,40.406" Opacity="1" Width="32" Height="32" VerticalAlignment="Bottom" x:Name="cmdCnvsModeArrow" Foreground="#FFFFFFFF" d:LayoutOverrides="VerticalAlignment, GridBox" >
        <Image x:Uid="Image_27" Source="Resources/CanvasArrow.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-5,0,5,0" />
      </Button>
      <Button x:Uid="cmdCnvsModeText" Style="{StaticResource GrowingSmartButton}" Margin="0,0,1,20.406" Opacity="1" Width="30" Height="30" VerticalAlignment="Bottom" Foreground="#FFFFFFFF" x:Name="cmdCnvsModeText" HorizontalAlignment="Right" d:LayoutOverrides="VerticalAlignment, GridBox" >
        <Image x:Uid="Image_28" Source="Resources/CanvasText.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-5,10,0,0" MaxHeight="36" MaxWidth="32" MinHeight="36" MinWidth="32" />
      </Button>

      <Button x:Uid="cmdCnvsTextUp" Style="{StaticResource GrowingSmartButton}" Margin="0,0,12,100.872549019608" Opacity="1" Width="18" Height="31" VerticalAlignment="Bottom" Foreground="#FFFFFFFF" x:Name="cmdCnvsTextUp" HorizontalAlignment="Right" d:LayoutOverrides="VerticalAlignment, GridBox" Grid.RowSpan="2">
        <Image x:Uid="Image_29" Source="Resources/up.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-0,0,0,0" MaxHeight="25" MaxWidth="30" MinHeight="25" MinWidth="30" />
      </Button>
      <Button x:Uid="cmdCnvsTextDown" Style="{StaticResource GrowingSmartButton}" Margin="0,12.872549019608,10,78" Opacity="1" Width="26" Foreground="#FFFFFFFF" x:Name="cmdCnvsTextDown" HorizontalAlignment="Right" d:LayoutOverrides="VerticalAlignment, GridBox" Grid.Row="1"  >
        <Image x:Uid="Image_30" Source="Resources/down.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,0" MaxHeight="25" MaxWidth="30" MinHeight="25" MinWidth="30" />
      </Button>

      <Button x:Uid="cmdColorSelector" Style="{StaticResource GrowingSmartButton}" Padding="0,0,0,0" Margin="0,35.7333333333332,2,54.5452156862748" x:Name="cmdColorSelector" Foreground="#FFFFFFFF" d:LayoutOverrides="GridBox" HorizontalAlignment="Right" Width="35" Grid.Row="1" >
        <StackPanel x:Uid="panelColorSelector" x:Name="panelColorSelector" ClipToBounds="False" Margin="0,0,0,0" Width="14" Height="14">
          <Rectangle x:Uid="rectCurrentColor" x:Name="rectCurrentColor" Width="14" Height="14" Fill="Black" Margin="-5,0,0,0" />
          <Popup x:Uid="ColorPickerPopper" x:Name="ColorPickerPopper"  Placement="Left" PopupAnimation="Fade" AllowsTransparency="True"/>
        </StackPanel>
      </Button>

      <Button x:Uid="cmdCnvsUndo" Style="{StaticResource GrowingSmartButton}" Margin="0,0,9,32.0000000000002" Opacity="1" Width="19" Foreground="#FFFFFFFF" x:Name="cmdCnvsUndo" HorizontalAlignment="Right" d:LayoutOverrides="VerticalAlignment, GridBox" Grid.Row="1" Height="23.8725490196077" VerticalAlignment="Bottom">
        <Image x:Uid="Image_31" Source="Resources/undo.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-10,0,0,0" />
      </Button>

      <Button x:Uid="cmdCnvsRedo" Style="{StaticResource GrowingSmartButton}" Margin="0,0,-2,2" Opacity="1" Width="40" Height="25" VerticalAlignment="Bottom" Foreground="#FFFFFFFF" x:Name="cmdCnvsRedo" HorizontalAlignment="Right" d:LayoutOverrides="VerticalAlignment, GridBox" Grid.Row="1">
        <Image x:Uid="Image_32" Source="Resources/redo.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-10,0,0,0" />
      </Button>



      <Button x:Uid="cmdCnvsDeleteShape" Style="{StaticResource GrowingSmartButton}" HorizontalAlignment="Right" Margin="0,14,-1,15" Opacity="1" Width="32" Foreground="#FFFFFFFF" x:Name="cmdCnvsDeleteShape" d:LayoutOverrides="GridBox" Grid.Row="2">
        <Image x:Uid="Image_33" Source="Resources/CanvasRecycleBin.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="-10,-10,0,0" Stretch="Uniform" />
      </Button>
</Grid>
  </StackPanel>
<Label x:Uid="resultLabel" Height="24" HorizontalAlignment="Right" Margin="0,0,0,0" Name="resultLabel" VerticalAlignment="Top" Width="120" Grid.Row="1" Foreground="#FFFF7300" FontSize="20" Padding="0,0,0,0"/>

  <Menu x:Uid="_m_MainMenu" x:Name="_m_MainMenu" VerticalAlignment="Top" Height="40" Width="0" HorizontalContentAlignment="Left"
            VerticalContentAlignment="Center" d:LayoutOverrides="GridBox" Margin="-450,0,0,0">
    <MenuItem x:Uid="Meet_TopmenuItem" x:Name="Meet_TopmenuItem" Width="Auto" Height="Auto" VerticalContentAlignment="Center" Header=""
              HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" Padding="13,10,0,0">
      <MenuItem x:Uid="MenuItem_1" VerticalContentAlignment="Center" VerticalAlignment="Center" Click="cmdCmMaximize_Click">
        <MenuItem.Header>
          <!--<TextBlock Text="最大化/最大化解除" VerticalAlignment="Center" />-->
          <TextBlock x:Uid="TextBlock_12" Text="Maximize/Restore" VerticalAlignment="Center"/>
        </MenuItem.Header>
        <MenuItem.Icon>
          <Image x:Uid="Image_34" Height="40" Source="Resources/maximize.png"/>
        </MenuItem.Icon>
      </MenuItem>
      <MenuItem x:Uid="MenuItem_2" VerticalContentAlignment="Center" VerticalAlignment="Center" Click="cmdCmSound_Click">
        <MenuItem.Header>
          <!--<TextBlock Text="音量調整" VerticalAlignment="Center" />-->
          <TextBlock x:Uid="TextBlock_13" Text="Video/Audio Volume" VerticalAlignment="Center"/>
        </MenuItem.Header>
        <MenuItem.Icon>
          <Image x:Uid="Image_35" Height="40" Source="Resources/sound.png"/>
        </MenuItem.Icon>
      </MenuItem>

      <MenuItem x:Uid="MenuItem_3" VerticalContentAlignment="Center" VerticalAlignment="Center" Click="cmdCmCapture_Click">
        <MenuItem.Header>
          <!--<TextBlock Text="Mapのキャプチャ" VerticalAlignment="Center" />-->
          <TextBlock x:Uid="TextBlock_14" Text="Export Map as picture" VerticalAlignment="Center"/>
        </MenuItem.Header>
        <MenuItem.Icon>
          <Image x:Uid="Image_36" Height="40" Source="Resources/savemap.png"/>
        </MenuItem.Icon>
      </MenuItem>

      <MenuItem x:Uid="MenuItem_4" VerticalContentAlignment="Center" VerticalAlignment="Center" Click="cmdCmExit_Click">
        <MenuItem.Header>
          <!--<TextBlock Text="終了" VerticalAlignment="Center" />-->
          <TextBlock x:Uid="TextBlock_15" Text="Exit" VerticalAlignment="Center"/>
        </MenuItem.Header>
        <MenuItem.Icon>
          <Image x:Uid="Image_37" Height="40" Source="Resources/close.png"/>
        </MenuItem.Icon>
      </MenuItem>
    </MenuItem>


    <Separator x:Uid="Separator_1" />
    </Menu>
</Grid>



</Window>


